/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.sapra.dao;

/**
 *
 * @author ppratsc
 */
public class CCosto {
    private int centroCostoId;
    private String nombre;
    private String descripcion;
    private int fk_empresaId;

    public CCosto(){
        
    }
    public CCosto(int id) {
        centroCostoId = id;
    }

    @Override
    public String toString(){
        return nombre;
    }

    public int getCentroCostoId() {
        return centroCostoId;
    }

    public void setCentroCostoId(int centroCostoId) {
        this.centroCostoId = centroCostoId;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public int getFk_empresaId() {
        return fk_empresaId;
    }

    public void setFk_empresaId(int fk_empresaId) {
        this.fk_empresaId = fk_empresaId;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final CCosto other = (CCosto) obj;
        if (this.centroCostoId != other.centroCostoId) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }
    
}
